﻿using System.ComponentModel;
using System.Runtime.Serialization;
using Renren.Models;

namespace Renren.Common
{
    [DataContract]
    public abstract class Entity : IObjectIdentifier, INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        protected void NotifyPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        public abstract long Id { get; }
    }
}
